﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ApuestaJMG.GUI
{

    public partial class index : System.Web.UI.Page
    {
        private static int i = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            
            if(Session["loginUsuario"]==null)
                Response.Redirect("Login.aspx");
          
          HttpRequest q = Request;

          if ((Session["loginUsuario"] != null)&& i==0)
          {
              string id = q.QueryString["loginUsuario"].ToString();
              Label1.Text = id;
              i++;
          }

          if ((Session["loginUsuario"] != null) && i > 1)
          {
             
              Label1.Text = Session["loginUsuario"].ToString();
              i++;
          }
          i++;
        }

      
    }
}